﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Input;
using System.Windows;

namespace PasswordProvider.View.Library
{
    class BindableKeyBinding : KeyBinding
    {
        public BindableKeyBinding()
        {
        }

        public static readonly DependencyProperty BindableCommandProperty =
            DependencyProperty.Register("BindableCommand", typeof(ICommand), typeof(BindableKeyBinding),
            new PropertyMetadata(
                (s, e) =>
                {
                    (s as KeyBinding).Command = (ICommand)e.NewValue;
                }));

        public ICommand BindableCommand
        {
            get { return (ICommand)GetValue(BindableCommandProperty); }
            set { SetValue(BindableCommandProperty, value); }
        }

        public static readonly DependencyProperty TestProperty =
            DependencyProperty.Register("Test", typeof(bool), typeof(BindableKeyBinding),
            new PropertyMetadata(
                (s, e) =>
                {
                    
                }));

        public bool Test
        {
            get { return (bool)GetValue(TestProperty); }
            set { SetValue(TestProperty, value); }
        }
    }
}
